README
“Trust After Tragedy: How Traumatic Events Impact Trust in Government(s) and Voting”
Wayde Z.C. Marsh
University of Tennessee, Knoxville
07/28/2025

Replication Instructions

1. Put all files in the replication archive into a single folder.
2. Run R script contained in code chunks in the RMarkdown file “Trust_Rep.Rmd” to reproduce results for Tables and Figures reported in manuscript. 

Overview of Files 
	R Scripts
		1. Trust_Rep.Rmd – This script estimates all the models summarized in all tables of the main text and produces all main text figures.
	
      Input Data Files
		1. study1.Rda---Data from original survey fielded Prolifics’s panel of respondents in October and November 2021. The sample uses quotas for age, sex, region, and ethnicity to match census data on these characteristics. Sample size was 1,555 respondents.
			a. Used to estimate the results in tables B.1, B.2, B.7, B.8, B.9, G.1, G.6. 
			b. Used to estimate the results in figure B.1.
		2. study2.Rda, study3.Rda, study4_corrected.Rda, study5.Rda--- Data from four original surveys fielded on YouGov’s panel in August 2022. This is a probability sample with matching and post-stratification weighting to be nationally-representative. Sample size was 1,000 respondents for each survey for a total of 4,000.
			a. Used to estimate the results in tables A.1, A.2, A.3, B.1, B.3, B.4, B.5, B.6, B.7, B.8, B.9, D.1, D.2, D.3, D.4, D.5, D.6, D.7, D.8, G.2, G.3, G.4, G.5, G.7, G.8, G.9, G.10, G.11, G.12, G.13, G.14, H.1.
			b. Used to estimate the effects in figures 1, 2, 3, 4, 5, 6, A.1, B.2, B.3, B.4, B.5, C.1, E.1, F.1, F.2, F.3, F.4, F.5, F.6, F.7, F.8.

	HTML Files
		1. Trust_Rep.html - This file is an html version of the Rmarkdown replication script, with all calculations already made and all figures and tables of results and descriptive statistics included.


Base Software Dependencies
	Operating System: macOS Sonoma version 14.6.1
	R: All analyses were produced using R 4.3.3 (2024-02-29), “Angel Food Cake”
      RStudio: 2024.04.2 Build 764

Additional Software Dependencies 
	R: The following R-packages were used in the analysis: descr, ggplot2, reshape2, psych, GPArotation, dplyr, foreign, ggpubr, ggeffects, data.table, haven, lavaan, tidyverse, modelsummary, fixest, tidySEM, and mediation.


